rmmod 32_rwlock.ko; insmod 32_rwlock.ko


# 读测试
# 终端1: 
cat /sys/kernel/kobject_example/foo
# 终端2: 
cat /sys/kernel/kobject_example/foo


# 写测试
# 终端1: 
echo 12 > /sys/kernel/kobject_example/foo
# 终端2: 
echo 15 > /sys/kernel/kobject_example/foo